snippet fn.mui.map
	#map{
		width: 100%;
		position: fixed;
		top: 0px;
		bottom: 0px;
				line-height: 200px;
				text-align: center;
		background: #FFFFFF;
	}


	<div id="map">地图载入中...</div>

	<script type="text/javascript" charset="utf-8">
	(function($, doc) {

		var location;
		$.plusReady(function() {
			// 获取当前坐标
			plus.geolocation.getCurrentPosition(
				function ( p ) {

					location = {
						lng: p.coords.longitude,
						lat: p.coords.latitude,
						alt: p.coords.altitude
					};

					// 渲染地图
					// if(!em||!window.plus||map){return};
					var map = new plus.maps.Map("map");

					//定位到指定坐标并设置缩放级别
					//if(!em||!window.plus||map){return};
					var point = new plus.maps.Point( location.lng, location.lat);
					map.centerAndZoom( point, 18 );

					//添加标点
					var marker=new plus.maps.Marker( point );
					map.addOverlay(marker);

				}, function ( e ) {
					alert( "Geolocation error: " + e.message );
				},{ provider: 'baidu'}

			);

		});

	}(mui, document));
	</script>
snippet fn.mui.map.area
	//获取小区
	var searchObj = new plus.maps.Search( map );
	var area = {} //小区信息
	searchObj.onPoiSearchComplete = function( state, result ){
		console.log("onPoiSearchComplete: "+state+" , "+result.currentNumber);
		if ( state == 0 ) {
			if ( result.currentNumber <= 0 ) {
				alert( "没有检索到结果" );
			}
			area = {
				city: result.getPosition(0).city,
				name: result.getPosition(0).name,
			}
		} else {
			alert( "检索失败" );
		}
	}
	var pt = new plus.maps.Point( location.lng, location.lat);
	searchObj.poiSearchNearBy( "小区", pt, 500 );

snippet fn.mui.vue.url
	mthods: {
		openUrl(urlStr){
			mui.openWindow({
				url: urlStr,
				show:{ autoShow:true }
			})
		},
	},
